package com.nexgo.domain.interactor;

import com.nexgo.domain.repository.PaymentPlatform;

import io.reactivex.Observable;

/**
 * Created by xiaox on 2017/6/2.
 */

public class SendAndRecv extends UseCase<Object, Object> {

    private PaymentPlatform repository;

    public SendAndRecv(PaymentPlatform repository) {
        this.repository = repository;
    }

    @Override
    Observable<Object> buildUseCaseObservable(Object params) {
        return repository.trans(params);
    }
}
